package com.moneywelcome.atomloanassembly.model;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel("用户还款分期表参数")
@TableName("amortization")
public class Amortization {

    @TableId(value = "amortization_id",type = IdType.AUTO)
    private Integer amortizationId;

    @ApiModelProperty("用户Id")
    private Integer userId;

    @ApiModelProperty("当前已还款期数")
    private Integer stageNumber;

    @ApiModelProperty("还款金额")
    private Double repayMoney;

    @ApiModelProperty("实际还款时间")
    private Date repayTime;

    @ApiModelProperty("下次还款时间，为最晚还款时间，出账时间为最晚还款时间之前7天")
    private Date realRepayTime;

    @ApiModelProperty("下次还款金额")
    private Double realRepayMoney;

    @ApiModelProperty("用户借款id")
    private Integer loanId;

    @ApiModelProperty("出账状态")
    private String outaccountStatus;

    @ApiModelProperty("还款状态")
    private  String  amortization;

    @ApiModelProperty("还款账号")
    private String repayAccount;

}
